package com.centaline.androidsalesblog.api.usercenter;

import com.android.volley.Request;
import com.centaline.androidsalesblog.api.UserCenterApi;
import com.centaline.androidsalesblog.model.responseobject.SimpleUserCenterRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 更新收藏信息为已读
 * Created by lihq on 16/6/3.
 */
public class UpdateCollectIsRead extends UserCenterApi<SimpleUserCenterRo> {

    private long collectID;

    public UpdateCollectIsRead(Class<?> tag, Class<SimpleUserCenterRo> aClass, IResponseListener<SimpleUserCenterRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    public void setCollectID(long collectID) {
        this.collectID = collectID;
    }


    @Override
    protected int getMethod() {
        return Request.Method.POST;
    }

    @Override
    protected void setParams() {
        putParams("CollectID", collectID);
    }

    @Override
    protected String getPath() {
        return "UpdateCollectInfoChangeIsReadByCollectIDRequest";
    }
}
